/* Assert.h for GNU C/C++ */

#ifndef __ASSERT_H__
#define __ASSERT_H__

#ifdef ASSERT

void assertionFailure(char *exp, char *file, char *baseFile, int line);

#define assert(exp)  if (exp) ; \
	else assertionFailure( #exp, __FILE__, __BASE_FILE__, __LINE__ )

#else

#define assert(exp)

#endif

#endif
